<?php
namespace Home\Controller;
use \Org\Util\UploadHandler;
class UploadController extends BaseController
{  
    private $options;
    private $upload_dir = "uploads/";
    private $script_url ;
    private $upload_url;
    
    public function __construct(){
        parent::__construct();
        $this->script_url = C("web_url");
        $this->upload_url=$this->script_url."/".$this->upload_dir;
    }
    //上传头像
    public function   upface(){

     $upLoads = new UploadHandler($this->__init());
   
       
    }
    //上传身份证 等认证信息
    public  function upidimg(){
        
    }
    //上传信息图片
    public function upgoods(){
        
    }
    
    private function __init(){
        $this->options['upload_dir']=$this->upload_dir;
        $this->options['full_url'] = $this->script_url;
        $this->options["upload_url"] = $this->upload_url;
        return $this->options;
    }
}